package com.lcl.jarvis.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import javax.validation.constraints.Size;

/**
 * <p>
 *
 * </p>
 *
 * @author licl
 * @since 2024-05-16
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@ApiModel(value="TbUserAuthDTO", description="")
public class TbUserAuthDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    @ApiModelProperty(value = "用户信息id")
    private Integer userInfoId;

    @ApiModelProperty(value = "用户名")
    @Size(max=50,message="不能超过最大长度：50")
    private String username;

    @ApiModelProperty(value = "密码")
    @Size(max=100,message="不能超过最大长度：100")
    private String password;

    @ApiModelProperty(value = "登录类型")
    private Integer loginType;

    @ApiModelProperty(value = "用户登录ip")
    @Size(max=50,message="不能超过最大长度：50")
    private String ipAddress;

    @ApiModelProperty(value = "ip来源")
    @Size(max=50,message="不能超过最大长度：50")
    private String ipSource;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "上次登录时间")
    private Date lastLoginTime;

    @ApiModelProperty(value = "token")
    @Size(max=255,message="不能超过最大长度：255")
    private String token;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserInfoId() {
        return userInfoId;
    }

    public void setUserInfoId(Integer userInfoId) {
        this.userInfoId = userInfoId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getLoginType() {
        return loginType;
    }

    public void setLoginType(Integer loginType) {
        this.loginType = loginType;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public String getIpSource() {
        return ipSource;
    }

    public void setIpSource(String ipSource) {
        this.ipSource = ipSource;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }


    @Override
    public String toString() {
        return "TbUserAuth{" +
        "id=" + id +
        ", userInfoId=" + userInfoId +
        ", username=" + username +
        ", password=" + password +
        ", loginType=" + loginType +
        ", ipAddress=" + ipAddress +
        ", ipSource=" + ipSource +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", lastLoginTime=" + lastLoginTime +
        ", token=" + token +
        ", id=" + id +
        ", userInfoId=" + userInfoId +
        ", username=" + username +
        ", password=" + password +
        ", loginType=" + loginType +
        ", ipAddress=" + ipAddress +
        ", ipSource=" + ipSource +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", lastLoginTime=" + lastLoginTime +
        ", token=" + token +
        "}";
    }
}
